package com.ruoyi.edh.service;

import com.ruoyi.edh.domain.EdhShoppingCart;
import com.ruoyi.edh.domain.vo.EdhShoppingCartVo;

import java.util.List;
import java.util.Map;


/**
 * 易订货-购物车Service接口
 * 
 * @author xxx
 * @date 2020-09-02
 */
public interface IEdhShoppingCartService 
{
    /**
     * 查询易订货-购物车
     * 
     * @param id 易订货-购物车ID
     * @return 易订货-购物车
     */
    public EdhShoppingCartVo selectEdhShoppingCartById(Long id);

    /**
     * 查询易订货-购物车列表
     * 
     * @param edhShoppingCart 易订货-购物车
     * @return 易订货-购物车集合
     */
    public List<EdhShoppingCartVo> selectEdhShoppingCartList(EdhShoppingCart edhShoppingCart);

    /**
     * 新增易订货-购物车
     * 
     * @param edhShoppingCart 易订货-购物车
     * @return 结果
     */
    public int insertEdhShoppingCart(EdhShoppingCart edhShoppingCart);

    /**
     * 设置为默认地址
     */
    public Integer defaultAdress(Long id);

    /**
     * 购物城数据封装
     */
    public Map<String,Object> sortShoppingCart(List<EdhShoppingCartVo> list);

    /**
     * 修改易订货-购物车
     * 
     * @param edhShoppingCart 易订货-购物车
     * @return 结果
     */
    public int updateEdhShoppingCart(EdhShoppingCart edhShoppingCart);

    /**
     * 批量删除易订货-购物车
     * 
     * @param ids 需要删除的易订货-购物车ID
     * @return 结果
     */
    public int deleteEdhShoppingCartByIds(String[] ids);

    /**
     * 删除易订货-购物车信息
     * 
     * @param id 易订货-购物车ID
     * @return 结果
     */
    public int deleteEdhShoppingCartById(Long id);
}
